Generate Pdf Report Using Python Flask Postgresql